USE F12I4DAB1H2Gr2;
GO

SELECT [Windmill_Measures].[Windmill]
      ,[Windmill_Measures].[Description]
      ,[Windmill_Measures].[Data]

FROM [ControlCenter]
INNER JOIN [ControlCenter_Permissions]
ON [ControlCenter].[ID]=[ControlCenter_Permissions].[ControlCenter]
INNER JOIN [Node]
ON [ControlCenter].[ID]=[Node].[ControlCenter]
INNER JOIN [Pool]
ON [Node].[ID]=[Pool].[Node]
INNER JOIN [Park]
ON [Pool].[ID]=[Park].[Pool]
INNER JOIN [Windmill]
ON [Park].[ID]=[Windmill].[Park]
INNER JOIN [Windmill_Measures]
ON [Windmill].[ID]=[Windmill_Measures].[Windmill]
WHERE [Park].[ID] = '1' AND [ControlCenter_Permissions].[Description] = 'GetMeasurements' AND [ControlCenter_Permissions].[Data] = 'True'
ORDER BY [Windmill_Measures].[Windmill]